package com.itheima.chapter09.io.bytestream;

import java.io.*;

public class BufferOIDemo1 {
    public static void main(String[] args) throws IOException {
        BufferedInputStream bis =new BufferedInputStream(new FileInputStream("D:\\my_project\\a.txt"));
        BufferedOutputStream bos =new BufferedOutputStream(new FileOutputStream("MyIdeaTest\\aaa\\buffcopy.txt"));
        int b;
        while((b=bis.read())!=-1){
            bos.write(b);
        }
        bis.close();
        bos.close();
    }
}
